import request from '@/utils/request.ts'
// 获取sku数据
export const getSkuList = (page: number | string, limit: number | string) =>
  request.get<any>(`/admin/product/list/${page}/${limit}`)
// 上架
export const onSale = (skuId: number | string) =>
  request.get<any>(`/admin/product/onSale/${skuId}`)
// 下架
export const cancelSale = (skuId: number | string) =>
  request.get<any>(`/admin/product/cancelSale/${skuId}`)
//详情
export const productInfo = (skuId: number | string) =>
  request.get<any>(`/admin/product/getSkuInfo/${skuId}`)
// 删除
export const deleteSKU = (skuId: number | string) =>
  request.delete(`/admin/product/deleteSku/${skuId}`)
